<div id="sidebar">
		<ul>
			<li>
				<h2>Recipe Categories</h2>
				<ul>
					<?php
						
						if($categories) {
							foreach ($categories as $category){
					?>
						<li>
							<a href="index.php?page=recipesbycategory&labelid=<?php echo $category["labelId"] ?>">
								<?php
									echo $category["name"];
								?>
							</a>
						</li>
					<?php
							}// end foreach
						}// end if
					?>
						<li>
							<a href="index.php?page=allrecipes">
							
								All Recipes
																
							</a>
				</ul>
			</li>
		</ul>
</div>
	<!-- end #sidebar -->